package org.abacus.platform.database.impl;

import java.util.LinkedHashSet;
import java.util.Set;

import org.abacus.platform.database.Column;
import org.abacus.platform.database.Table;
import org.abacus.platform.database.TableGroup;

public class TableImpl implements Table {

	/**
	 *
	 */
	private static final long serialVersionUID = -1041251418555021095L;
	private Long id;

	private TableGroup tableGroup;

	private String tableName;

	private String className;

	private String showName;

	private Set<Column> columns = new LinkedHashSet<Column>();

	public Long getId() {
		return id;
	}

	public void setId(Long arg0) {
		id = arg0;
	}

	public TableGroup getTableGroup() {
		return tableGroup;
	}

	public void setTableGroup(TableGroup arg0) {
		tableGroup = arg0;
	}

	public String getTableName() {
		if (null != tableName) {
			tableName = tableName.toUpperCase();
		}
		return tableName;
	}

	public void setTableName(String arg0) {
		tableName = arg0;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String arg0) {
		className = arg0;
	}

	public String getShowName() {
		return showName;
	}

	public void setShowName(String arg0) {
		showName = arg0;
	}

	public Set<Column> getColumns() {
		return columns;
	}

	public void setColumns(Set<Column> arg0) {
		columns = arg0;
	}
}
